import java.util.ArrayList;

public class Doctor extends Resource {
	public int doctorID;
	public int doctorWorkload;

	public Doctor (int dID){this.doctorID = dID;}
	
	
	public int getdoctorID() {return doctorID;}
	
	public int getdoctorWorkload(){
		int dWL = 0;
		ArrayList<PatientBase> patients = new ArrayList<PatientBase>();
		for (PatientBase p : patients){
			if (p.doctorAssigned == this.doctorID){
				if (p.eventArray.containsValue(EventType.StartConsultationEvent))
					dWL += 1;
				else if (p.eventArray.containsValue(EventType.StartFinalMDAssessEvent))
					dWL += 1;
				else if (p.eventArray.containsValue(EventType.StartMDAssess1Event))
					dWL +=1;
				else if (p.eventArray.containsValue(EventType.StartMDAssess2Event))
					dWL +=1;
				else if (p.eventArray.containsValue(EventType.StartMDAssess3Event))
					dWL +=1;
				else if (p.eventArray.containsValue(EventType.StartMDAssess4Event))
					dWL +=1;
			}	
		}
		return dWL;
	}
	
}